package com.leyou.page.service;

import com.leyou.page.vo.BrandVO;

import java.util.List;

public interface PageService {

    String spuLoadData(Long id);

    String loadSkuListData(Long spuId);

    String loadSpuDatailData(Long spuId);

    String loadCategoriesData(List<Long> ids);

    String loadBrandData(Long id);

    String loadSpecData(Long categoryId);

    /**
     * 把Sku从Redis删除
     */
    Boolean deleteSku(Long spuId);

    /*
    * 从redis删除brand数据信息
    * */
    Boolean deleteBrand(Long spuId);

    /*
     *删除商品详情信息
     * */
    Boolean deleteSpuDetail(Long spuId);
    /*
    * 删除规格信息
    * */
    Boolean deleteSpec(Long categoryId);
        /*
        * 删除商品分类信息
        * */
    Boolean deleteCategories(List<Long> ids);

        /*
        * 删除Spu信息
        * */
    Boolean deteleSpu(Long id);

    String saveBrand2Redis(BrandVO brandVO);



}
